package com.neuedu.javase.oop;

/**
 * @auth 金山老师
 * title:   书籍代码
 * creatime: 2022-09-26 13:50
 * 描述 : 启动类
 */
public class Runner {


    public static void main(String[] args) {

        //创建对象   new Human()
        Human zhangsan = new Human();
        Human lisi = new Human();
        
        System.out.println("zhangsan = " + zhangsan);
        System.out.println("lisi = " + lisi);


        //访问属性  对象.属性
        zhangsan.name = "张三";
        lisi.name = "李四";

        zhangsan.age = 15;
        lisi.age = 15;

        //自我介绍 对象.方法名()
        zhangsan.sayHi();
        lisi.sayHi();
        System.out.println("==========");

        
        int numa =10;
        int numb = 20;
        zhangsan.sum(numa,numb);
        lisi.sum(numa,numb);
        System.out.println("numa = " + numa);
        System.out.println("numb = " + numb);

    }
    
}
